package pers.wensheng.patterns.creator_pattern.factory_pattern.abstract_factory_pattern.factory;

import pers.wensheng.patterns.creator_pattern.factory_pattern.abstract_factory_pattern.entity.Coffee;
import pers.wensheng.patterns.creator_pattern.factory_pattern.abstract_factory_pattern.entity.Dessert;
import pers.wensheng.patterns.creator_pattern.factory_pattern.abstract_factory_pattern.entity.LatteCoffee;
import pers.wensheng.patterns.creator_pattern.factory_pattern.abstract_factory_pattern.entity.Trimisu;

/**
 *  意大利风味甜品工厂
 *  生产拿铁咖啡和提拉米苏
 */
public class ItalyDessertFactory implements DessertFactory {
    /**
     * 生产咖啡功能
     *
     * @return
     */
    @Override
    public Coffee createCoffee() {
        return new LatteCoffee();
    }

    /**
     * 生产甜品功能
     *
     * @return
     */
    @Override
    public Dessert createDessert() {
        return new Trimisu();
    }
}
